package zoo;

import javax.inject.Inject;


import animal.component.DaggerAnimalComponent;
import animal.impl.Cat;
import animal.impl.Dog;

public class Zoo {
	@Inject
	public Dog animal;
	
	@Inject
	public Cat cat;

	public void doSomething() {
		DaggerAnimalComponent.create().inject(this);
		animal.loud();
		animal.run();
		cat.loud();
		cat.run();
	}
	
	public static void main(String[] args) {
		new Zoo().doSomething();
	}
}
